<?php
RegisterPlugin("upurl","ActivePlugin_upurl");

Add_Filter_Plugin('Filter_Plugin_API_VerifyCSRF_Skip', 'upurl_IgnoreCSRF');
function ActivePlugin_upurl() {
//    Add_Filter_Plugin('Filter_Plugin_API_Extend_Mods', 'upurl_RegAPI');
//    ApiAddMod('upurl', 'api_upurl_up');
    ApiAddMod('upurl', __DIR__ . '/myapi.php');
}


function upurl_IgnoreCSRF(&$array) {
    $array[] = array('mod' => 'upurl', 'act' => 'up');
}

function upurl_RegAPI() {
    return array('upurl' => __DIR__ . '/myapi.php');
}


// 插件启用时调用
function InstallPlugin_demoPlugin()
{
}
// 插件关闭时调用
function UninstallPlugin_demoPlugin()
{
}